import 'package:flutter/material.dart';
import 'package:logger/logger.dart';

class WaterMaskRoute extends StatefulWidget {
  const WaterMaskRoute({Key? key}) : super(key: key);

  @override
  State<StatefulWidget> createState() => _WaterMaskRouteState();
}

class _WaterMaskRouteState extends State<WaterMaskRoute> {
  final logger = Logger(printer: LogfmtPrinter());

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('实现 App 水印'),
      ),
      body: Stack(
        children: [
          Listener(
            onPointerDown: (e) => logger.i('${e.delta}'),
            child: Container(
              width: 200,
              height: 200,
              color: Colors.grey,
            ),
          ),
        ],
      ),
    );
  }
}
